//
//  ZYFactoryMainPage.m
//  DesignMode
//
//  Created by wangzhipan on 2024/9/26.
//

#import "ZYFactoryMainPage.h"
#import "ZYFileSplitter.h"

@interface ZYFactoryMainPage()
@property (nonatomic, strong, nullable) id<ISplitterFactory> factory;
@end

@implementation ZYFactoryMainPage
- (instancetype)initWithFactory:(id<ISplitterFactory>)factory
{
    if (self = [super init]) {
        self.factory = factory;
    }
    return self;
}

- (void)clickToSplitter
{
    id<ISplitter>splitter = [self.factory createSplitter];
    [splitter splitter];
}
@end
